package FileOutPutStreamDemo;
import  java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class FileOutPutStream {


    public static void main(String[] args) throws IOException {
        FileOutPutStream fos= new FileOutPutStream("demo\\fos.txt",true);
        for(int i=0;i<10;i++){
            fos.write("hello".getBytes());
            fos.write("\r\n".getBytes());
        }
        fos.close();
    }

